package router

import (
	"parking-lot-go-admin/controller"
	"parking-lot-go-admin/controller/admin"

	"github.com/gin-gonic/gin"
)

func NoLogin(r *gin.Engine) {

	api := r.Group("/api")

	//注册登录
	adminRouter := api.Group("/admin")
	{
		//登录
		adminRouter.POST("login", admin.Login)

		//刷新token
		adminRouter.POST("refresh_token", admin.RefreshToken)
	}

	//上传文件
	api.POST("upload", controller.Upload)

}
